package com.kenliang.netty.rpc.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

/**
 * @author KenLiang
 * @description:
 * @date Created in 6:16 PM 2019/3/22.
 */
@Configuration
public class ClientConfig {

    @Autowired
    private Environment environment;

    public long messageCallbackTimeoutMillSeconds(){
        return environment.getProperty("message.callback.timeout.mill.seconds",Long.class,30 * 1000L);
    }
}
